import Vue from 'vue'
import Router from 'vue-router'

//组件模块
import Home from './pages/Home.vue'
import People from './pages/People.vue'
import Publications from './pages/Publications.vue'
import Videos from './pages/Videos.vue'
import Contact from './pages/Contact.vue'
import Research from './pages/Research.vue'
// import Extracurricular from './pages/Extracurricular.vue'
// import GoodJobs from './pages/GoodJobs.vue'
// import Article from './pages/Article.vue'
// import Repository from './pages/Repository.vue'
// import VideoPlay from './pages/VideoPlay.vue'




Vue.use(Router)

export default new Router({
    routes: [
        { path: "/", redirect: "/home" },
        { path: "/home", component: Home },

        { path: "/people", component: People },
        { path: "/publications", component: Publications },
        { path: "/videos", component: Videos },
        { path: "/contact", component: Contact },
        { path: "/research", component: Research },
        // { path: "/extracurricular", component: Extracurricular },
        // { path: "/goodjobs", component: GoodJobs },
        // { path: "/repository", component: Repository },
        // { path: "/videoplay", component: VideoPlay },
        // { path: "/test", component: Article, props: route => ({ query: route.query })},
        // { path: "/test", component: Article},

    ]
})
